#define _CRT_SECURE_NO_WARNINGS
#include"List.h"
void test1()
{
	ListNode* plist = InitList();
	ListNodePushBack(plist, 1);
	ListNodePushBack(plist, 2);
	ListNodePushBack(plist, 3);
	ListNodePushBack(plist, 4);
	ListNodePushBack(plist, 5);
	ListNodeDisplay(plist);
	ListNdoePopBack(plist);
	ListNdoePopBack(plist);
	ListNdoePopBack(plist);
	ListNdoePopBack(plist);
	ListNdoePopBack(plist);
	ListNdoePopBack(plist);
	ListNodeDisplay(plist);



}
void test2()
{
	ListNode* plist = InitList();
	ListNodePushFront(plist, 1);
	ListNodePushFront(plist, 2);
	ListNodePushFront(plist, 4);
	ListNodePushFront(plist, 5);
	ListNodePushFront(plist, 6);
	ListNodeDisplay(plist);
	ListNode*ret = ListNodeFind(plist, 2);
	if (ret)
	{
		ListNodeInsert(ret, 111);
	}
	ListNodeEreas(ret);
	ListNodeDisplay(plist);

}
int main()
{
	//test1();
	test2();
	return 0;
}